<template>
	<view style="padding: 30rpx;">
		<navigator url="/pages/APIpages/Logpage/Logpage">
			<button >打印日志</button>
			</navigator>
		<navigator url="/pages/APIpages/TimePage/TimePage">
			<button >计时器</button>
			</navigator>
		<!-- <navigator url="/pages/APIpages/StoragePage/StoragePage">
		    <button>数据缓存</button>
		    </navigator> -->
			<button @click="goStoPage()">数据缓存</button>
			<navigator url="/pages/tianqi/tianqi">
				<button class="tqy">天气预报</button>
				</navigator>
			<navigator url="/pages/tupian/tupian">
				<button class="xspic">显示图片</button>
				</navigator>
			<navigator url="/pages/wangtu/wangtu">
				<button class="wltp">网络图片</button>
				</navigator>
			<navigator url="/pages/zjcz/zjcz">
				<button class="zj">组件传值</button>
				</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			uni.preloadPage({
				url:"/pages/APIpages/StoragePage/StoragePage"
			})
		},
		methods: {
			goStoPage(){
				uni.navigateTo({
					url:"/pages/APIpages/StoragePage/StoragePage",
					success(){
						console.log("navigateTo--->succes");
					},
					fail(e){
						console.log("navigateTo--->fail:" + JOSN.stringify(e));
					},
					complete() {
						console.log("navigateTo--->complete");
					}
				})
			}
		}
	}
</script>

<style>
button{
	margin: 30rpx;
}
.tqy{
	background-color: #ffffff;
	color: #00aaff;
	border-radius: 8rpx;
	margin-bottom: 20rpx;
}
.xspic{
	background-color: #ffffff;
	color: #ffaaff;
	border-radius: 8rpx;
	margin-bottom: 20rpx;
}
.wltp{
	background-color: #ffffff;
	color: #b389d3;
	border-radius: 8rpx;
	margin-bottom: 20rpx;
}
.zj{
	background-color: #ffffff;
	color: #aeff90;
	border-radius: 8rpx;
	margin-bottom: 20rpx;
}
</style>
